package edu.hrbu.spring.service.impl;

import edu.hrbu.spring.mapper.AdminMapper;
import edu.hrbu.spring.pojo.Admin;
import edu.hrbu.spring.service.AdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author 徐登宇
 */
@Service
public class AdminServiceImpl implements AdminService {

    @Resource(name = "adminMapper")
    AdminMapper adminMapper;

    @Override
    public Admin login(String adminName, String adminPwd) {
        return adminMapper.login(adminName, adminPwd);
    }
}
